{include file='public/head' /}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-lg-10 col-md-offset-2 main" id="main">
      <div class="row">
        <div class="col-md-5">
          <h1 class="page-header">系统设置</h1>
          <form action="{:url('admin/setconfig/set')}" method="post" autocomplete="off">
              <div class="form-group">
              <label for="category-name">赔率设置</label>
              <input type="number" min="1" max="3.000" step="0.01" id="category-name" name="allodds" class="form-control" value="{$data.0.allodds}" required autocomplete="off">
              <span class="prompt-text">用户中奖进行的赔率</span> 
              </div>
              <div class="form-group"> 
              <label for="category-name">内容编辑</label>
              <script id="container" name="content" type="text/plain" style="width:600px;height:200px;">
                {$data.0.content}
              </script>
              </div>
              <div class="form-group">
              <label for="category-name">开奖时间设置</label>
              <input type="number" min="0" max="59" " id="category-name" name="return" class="form-control" value="{$data.0.return}" required autocomplete="off">
              <span class="prompt-text">用户中奖进行的赔率</span> 
              </div>
              <div class="form-group">
              <label for="category-alias">网站开启状态</label>
              <select id="category-fname" class="form-control" name="status">
                {if condition = "$data.0.status eq 1"}
                  <option value="1" selected>开启</option>
                  <option value="0">关闭</option>
                {else/}
                  <option value="1">开启</option>
                  <option value="0" selected>关闭</option>
                {/if}              
              </select>
             </div>           
             <button class="btn btn-primary" type="submit">确认</button>
             <button class="btn btn-primary" type="reset" >清除</button>
          </form>
        </div>
      </div>
    </div>
  </div>
</section>
</body>
</html>
<!-- 配置文件 -->
<script type="text/javascript" src="__STATIC__/admin/lib/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__STATIC__/admin/lib/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="__STATIC__/admin/lib/ueditor/ueditor.parse.js"></script>
<script type="text/javascript">
window.onload=function(){
     var ue = UE.getEditor('container',{
         elementPathEnabled : false,
         wordCount: false ,
         allowDivTransToP:true,
     });
}
</script>
